package xgenerator.model;

public class FieldMetadata {
	
	private String columnName;
	
	private String propertyName;
	
	private String propertyNameLowerCamelCase;  //属性LowerCamelCase
	
	private String propertyNameUpperCamelCase;  //属性UpperCamelCase
	
	private String propertyNameUnderscore;  //属性下划线表示
	
	private String propertyNameStudlyCaps;  //属性StudlyCaps表示

	private String propertyType;

	private String displayName;
	
	private String comments;

	private String sqlDataType;  //表中SQL类型

	private Integer dataLength;  //长度
	
	private Integer dataPrecision;  //精度
	
	private Integer dataScale;  //刻度——小数点后位数

	private boolean nullable;
	
	private Integer defaultLength;  //默认值长度

	private String dataDefault;  //默认值
	
	private Integer charLength;  //列最大程度，用字符串表示

	private boolean keyField;

	private String constraintType;  //约束类型
	
	private String referencingTable;
	
	private String referencingColumn;
	
	private String deleteRule;
	
	private boolean queryField;

	private String queryMode;
	
	private String componentType;

	/**
	 * @return the displayName
	 */
	public String getDisplayName() {
		return displayName;
	}

	/**
	 * @param displayName the displayName to set
	 */
	public void setDisplayName(String chineseName) {
		this.displayName = chineseName;
	}

	/**
	 * @return the columnName
	 */
	public String getColumnName() {
		return columnName;
	}

	/**
	 * @param columnName the columnName to set
	 */
	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	/**
	 * @return the comments
	 */
	public String getComments() {
		return comments;
	}

	/**
	 * @param comments the comments to set
	 */
	public void setComments(String comments) {
		this.comments = comments;
	}

	/**
	 * @return the componentType
	 */
	public String getComponentType() {
		return componentType;
	}

	/**
	 * @param componentType the componentType to set
	 */
	public void setComponentType(String componentType) {
		this.componentType = componentType;
	}

	/**
	 * @return the constraintType
	 */
	public String getConstraintType() {
		return constraintType;
	}

	/**
	 * @param constraintType the constraintType to set
	 */
	public void setConstraintType(String constraintType) {
		this.constraintType = constraintType;
	}

	/**
	 * @return the dataDefault
	 */
	public String getDataDefault() {
		return dataDefault;
	}

	/**
	 * @param dataDefault the dataDefault to set
	 */
	public void setDataDefault(String dataDefault) {
		this.dataDefault = dataDefault;
	}

	/**
	 * @return the dataLength
	 */
	public Integer getDataLength() {
		return dataLength;
	}

	/**
	 * @param dataLength the dataLength to set
	 */
	public void setDataLength(Integer dataLength) {
		this.dataLength = dataLength;
	}

	/**
	 * @return the dataPrecision
	 */
	public Integer getDataPrecision() {
		return dataPrecision;
	}

	/**
	 * @param dataPrecision the dataPrecision to set
	 */
	public void setDataPrecision(Integer dataPrecision) {
		this.dataPrecision = dataPrecision;
	}

	/**
	 * @return the dataScale
	 */
	public Integer getDataScale() {
		return dataScale;
	}

	/**
	 * @param dataScale the dataScale to set
	 */
	public void setDataScale(Integer dataScale) {
		this.dataScale = dataScale;
	}

	/**
	 * @return the sqlDataType
	 */
	public String getSqlDataType() {
		return sqlDataType;
	}

	/**
	 * @param sqlDataType the sqlDataType to set
	 */
	public void setSqlDataType(String dataType) {
		this.sqlDataType = dataType;
	}

	/**
	 * @return the keyField
	 */
	public boolean isKeyField() {
		return keyField;
	}

	/**
	 * @param keyField the keyField to set
	 */
	public void setKeyField(boolean keyField) {
		this.keyField = keyField;
	}

	/**
	 * @return the nullable
	 */
	public boolean isNullable() {
		return nullable;
	}

	/**
	 * @param nullable the nullable to set
	 */
	public void setNullable(boolean nullable) {
		this.nullable = nullable;
	}

	/**
	 * @return the propertyName
	 */
	public String getPropertyName() {
		return propertyName;
	}

	/**
	 * @param propertyName the propertyName to set
	 */
	public void setPropertyName(String propertyName) {
		this.propertyName = propertyName;
	}

	/**
	 * @return the propertyNameLowerCamelCase
	 */
	public String getPropertyNameLowerCamelCase() {
		return propertyNameLowerCamelCase;
	}

	/**
	 * @param propertyNameLowerCamelCase the propertyNameLowerCamelCase to set
	 */
	public void setPropertyNameLowerCamelCase(String propertyNameLowerCamelCase) {
		this.propertyNameLowerCamelCase = propertyNameLowerCamelCase;
	}

	/**
	 * @return the propertyNameStudlyCaps
	 */
	public String getPropertyNameStudlyCaps() {
		return propertyNameStudlyCaps;
	}

	/**
	 * @param propertyNameStudlyCaps the propertyNameStudlyCaps to set
	 */
	public void setPropertyNameStudlyCaps(String propertyNameStudlyCaps) {
		this.propertyNameStudlyCaps = propertyNameStudlyCaps;
	}

	/**
	 * @return the propertyNameUnderscore
	 */
	public String getPropertyNameUnderscore() {
		return propertyNameUnderscore;
	}

	/**
	 * @param propertyNameUnderscore the propertyNameUnderscore to set
	 */
	public void setPropertyNameUnderscore(String propertyNameUnderscore) {
		this.propertyNameUnderscore = propertyNameUnderscore;
	}

	/**
	 * @return the propertyNameUpperCamelCase
	 */
	public String getPropertyNameUpperCamelCase() {
		return propertyNameUpperCamelCase;
	}

	/**
	 * @param propertyNameUpperCamelCase the propertyNameUpperCamelCase to set
	 */
	public void setPropertyNameUpperCamelCase(String propertyNameUpperCamelCase) {
		this.propertyNameUpperCamelCase = propertyNameUpperCamelCase;
	}

	/**
	 * @return the propertyType
	 */
	public String getPropertyType() {
		return propertyType;
	}

	/**
	 * @param propertyType the propertyType to set
	 */
	public void setPropertyType(String propertyType) {
		this.propertyType = propertyType;
	}

	/**
	 * @return the queryField
	 */
	public boolean isQueryField() {
		return queryField;
	}

	/**
	 * @param queryField the queryField to set
	 */
	public void setQueryField(boolean queryField) {
		this.queryField = queryField;
	}

	/**
	 * @return the queryMode
	 */
	public String getQueryMode() {
		return queryMode;
	}

	/**
	 * @param queryMode the queryMode to set
	 */
	public void setQueryMode(String queryMode) {
		this.queryMode = queryMode;
	}

	/**
	 * @return the referencingColumn
	 */
	public String getReferencingColumn() {
		return referencingColumn;
	}

	/**
	 * @param referencingColumn the referencingColumn to set
	 */
	public void setReferencingColumn(String referencingColumn) {
		this.referencingColumn = referencingColumn;
	}

	/**
	 * @return the referencingTable
	 */
	public String getReferencingTable() {
		return referencingTable;
	}

	/**
	 * @param referencingTable the referencingTable to set
	 */
	public void setReferencingTable(String referencingTable) {
		this.referencingTable = referencingTable;
	}

	/**
	 * @return the deleteRule
	 */
	public String getDeleteRule() {
		return deleteRule;
	}

	/**
	 * @param deleteRule the deleteRule to set
	 */
	public void setDeleteRule(String referentialTriggeredAction) {
		this.deleteRule = referentialTriggeredAction;
	}

	/**
	 * @return the charLength
	 */
	public Integer getCharLength() {
		return charLength;
	}

	/**
	 * @param charLength the charLength to set
	 */
	public void setCharLength(Integer charLength) {
		this.charLength = charLength;
	}

	/**
	 * @return the defaultLength
	 */
	public Integer getDefaultLength() {
		return defaultLength;
	}

	/**
	 * @param defaultLength the defaultLength to set
	 */
	public void setDefaultLength(Integer defaultLength) {
		this.defaultLength = defaultLength;
	}
	
}
